<template>
    <div class="wrap">
      <h3>意见反馈</h3>
      <textarea v-model="val" placeholder="请输入您的意见我们将期待与您共同成长" v-show="show"></textarea>

      <div class="btn" v-show="show">
        <button class="btn1" @click="reset()">取消</button>
        <button class="btn2">确认</button>
      </div>
      <p class="pp" v-show="show1">暂无数据,请登录</p>
    </div>
</template>

<script>
    export default {
        name: "Feedback",
      data(){
          return{
            val:'',
            show:true,
            show1:false
          }
      },
      methods:{
        reset(){
          this.val='';
        }

      },
      mounted(){
        if(this.$store.state.phone==''){
          this.show=false;
          this.show1=true;
        }else{
          this.show=true;
          this.show1=false;
        }
      }
    }
</script>

<style scoped>
  .wrap{
    width: 1083px;
    height: 623px;
    border: 1px solid #e7e7e7;
  }
  .wrap h3{
    width: 1063px;
    height: 56px;
    line-height: 56px;
    padding-left: 20px;
    font-size: 18px;
    color: #212121;
    border-bottom: 1px solid #e7e7e7;
  }
  textarea{
    border: 1px solid #d9d9d9;
    width: 960px;
    height: 335px;
    margin-top: 40px;
    margin-left: 40px;
    font-size: 16px;
    padding: 20px;
  }
  .btn{
    width: 100%;
    text-align: center;
    height: 50px;
  }
  button{
    width: 150px;
    height: 50px;
    color: #fff;
    font-size: 20px;
    border-radius: 5px;
    margin-top: 40px;
    cursor: pointer;
  }
  .btn1{
    background: #999999;
    margin-right: 100px;
  }
  .btn2{
    background: #f08200;
  }
  .pp{
    width: 1083px;
    height: 46px;
    line-height: 46px;
    border-bottom: 1px solid #e9e9e9;
    text-align: center;
  }
</style>
